<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>用户管理</title>

<link rel="stylesheet"
	href="assets/bootstrap-table/bootstrap-table.css">
<link rel="stylesheet"
	href="assets/bootstrap-table/bootstrap-editable.css">
<script src="assets/bootstrap-table/jquery.min.js"></script>
<script src="assets/bootstrap-table/bootstrap.min.js"></script>
<script src="assets/bootstrap-table/bootstrap-table.js"></script>
<script src="assets/bootstrap-table/bootstrap-table-export.js"></script>
<script src="assets/bootstrap-table/tableExport.js"></script>
<script src="assets/bootstrap-table/bootstrap-table-editable.js"></script>
<script src="assets/bootstrap-table/bootstrap-editable.js"></script>
<script src="js/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>

<link rel="stylesheet" type="text/css" href="date/css/pikaday.css"/>
<script type="text/javascript" src="date/js/pikaday.min.js"></script>

<link rel='stylesheet' type='text/css' href='css/templetcss/other.css'>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/json2/20140204/json2.min.js"></script>
<![endif]-->
<style>
.ml10 {
	margin-left: 10px;
}

#operate-success {

	font-size: 16px;
	background-color: #8AC007;
	color: #FBFBFB;
	visibility: hidden;
}
</style>
</head>
<body>
	<div style=" margin-left:15px">
		<div class="page-header">
			<h1>商品管理&nbsp;&nbsp;</h1>
		</div>
		<div id="QRimg"></div>
		<div style="text-align: center;">
			<span id="operate-success">设置成功</span>
		</div>



		<div id="toolbar" class="btn-group">
					<button id="plus" type="button" class="btn btn-default" title="新建商品">
						<i class="glyphicon glyphicon-plus" ></i>
					</button>
					<button id="edit" type="button" class="btn btn-default" title="编辑商品">
						<i class="glyphicon glyphicon-edit" ></i>
					</button>
					<button id="delete" type="button" class="btn btn-default" title="删除商品">
						<i class="glyphicon glyphicon-minus" ></i>
					</button>
					<button type="button" class="btn btn-default">
						<input id="aa" />
					</button>
                   
                    
				   
					 <button id="QRCode" type="button" class="btn btn-default">
					 <img src="img/QR.jpg" width="17px" height="17px">
						二维码
					</button>			 
			</div>
			
	  </div>
			<script type="text/javascript">
			
			  $("#QRCode").on("click",function(){
				  var text=$("#aa").val();
				    	$.post("QRCode/getUrl.do",{
				    		text:text
				    	  },function(data){
				    		  $("#QRimg").html('');
				    		var QRimg="<img src="+data+">";				    	
				    		  $("#QRimg").html(QRimg);				    		
				    	  });
				    });
		    </script>
  </body>
</html>